package com.atguigu.qqzone.pojo;

import java.util.List;

/**
 * @ClassName: UserBasic
 * @Description: 用户登录信息
 * @Author: wty
 * @Date: 2022/12/9
 */

public class UserBasic {
    private Integer id;
    private String loginId;
    private String nickName;
    private String pwd;
    private String headImg;

    /**
     * 与UserDetail有1对1关系
     */
    private UserDetail userDetail;

    /**
     * 1个用户拥有多个日志
     */
    private List<Topic> topicList;

    /**
     * 好友 M:N
     */
    private List<UserBasic> friendList;

    public UserBasic() {
    }

    public UserBasic(Integer id, String loginId, String nickName, String pwd, String headImg) {
        this.id = id;
        this.loginId = loginId;
        this.nickName = nickName;
        this.pwd = pwd;
        this.headImg = headImg;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLoginId() {
        return loginId;
    }

    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    @Override
    public String toString() {
        return "UserBasic{" +
                "id=" + id +
                ", loginId='" + loginId + '\'' +
                ", nickName='" + nickName + '\'' +
                ", pwd='" + pwd + '\'' +
                ", headImg='" + headImg + '\'' +
                '}';
    }
}
